import { LAYOUT } from '@/router/constant'
import type { RouteRecordRaw } from 'vue-router'

const deviceRoute: RouteRecordRaw = {
  path: '/system/distributed-device',
  component: LAYOUT,
  meta: {
    noAuth: true
  },
  children: [
    {
      path: 'setting',
      name: 'system-device-setting',
      meta: {
        title: '设备配置',
        noAuth: true
      },
      component: () => import('@/views/system/device/setting.vue')
    },
    {
      path: 'read',
      name: 'system-device-read',
      meta: {
        title: '读取数据',
        noAuth: true
      },
      component: () => import('@/views/system/device/read.vue')
    },
    {
      path: 'write',
      name: 'system-device-write',
      meta: {
        title: '写入数据',
        noAuth: true
      },
      component: () => import('@/views/system/device/write.vue')
    }
  ]
}

export default deviceRoute
